<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;

class SearchingController extends AbstractActionController
{
    public $view;

    public function __construct(){
      $this->view = new ViewModel();
      $this->view->controller = 'searching'; 
      $this->view->filePath = FILES_PATH;
    }

    public function indexAction(){
      $this->layout('layout/home');
      return $this->view;
    }

    public function resultAction(){
      $this->layout('layout/home');
      return $this->view;
    }
}